import request from '@/utils/request'

// 获取班次信息
export function getShift(query) {
  return request({
    url: '/shift',
    method: 'get',
    params: query
  })
}

//修改班次
export function updShift(data) {
  return request({
    url: '/shift',
    method: 'put',
    data: data
  })
}
//新增班次
export function addShift(data) {
  return request({
    url: '/shift',
    method: 'post',
    data: data
  })
}